from django.forms import ModelForm
from mhlandscaping.apps.contact.models import Entry
from django import forms

class ContactForm(ModelForm):
    
    first_name = forms.CharField(error_messages={'required': 'Please enter your first name'})
    last_name = forms.CharField(error_messages={'required': 'Please enter your last name'})
    email = forms.CharField(error_messages={'required': 'Please enter your email'})
    enquiry = forms.CharField(widget=forms.Textarea, error_messages={'required': 'Please enter your enquiry'})
    
    class Meta:
        model = Entry